Replace initialiser for readonly parameter in xshandle_init that should never
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 21 Nov 2005 13:48:10 +0000 (14:48 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 21 Nov 2005 13:48:10 +0000 (14:48 +0100)
have been deleted.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/lowlevel/xs/xs.c

index 01679b3de980e08e26fa1655f9e7efeb74106df5..0b623a6a8fe3842b99615bc89464deb81bde9559 100644 (file)
@@ -815,7 +815,7 @@ xshandle_init(XsHandle *self, PyObject *args, PyObject *kwds)
 {
     static char *kwd_spec[] = { "readonly", NULL };
     static char *arg_spec = "|i";
-    int readonly;
+    int readonly = 0;
 
     if (!PyArg_ParseTupleAndKeywords(args, kwds, arg_spec, kwd_spec,
                                      &readonly))